package com.hshit.downloader.services;

import android.content.Context;

import com.hshit.downloader.io.NetworkWorker;
import com.hshit.downloader.io.ShitRequest;
import com.hshit.downloader.io.NetworkWorker.NetworkAsyncCallback;
import com.hshit.downloader.utils.Constants;

public class VideoService {
	public static void queryListVideo(Context mContext, String key, NetworkAsyncCallback<String> callback) {
		String mURL = String.format(Constants.VIDEO_BASE_LINK, key);
		ShitRequest request = new ShitRequest(mURL, ShitRequest.GET);
		NetworkWorker worker = new NetworkWorker(mContext, request, callback);
		worker.work();
	}
}
